TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
CONFIG -= qt
QMAKE_CFLAGS+= -std=gnu99

SOURCES += \
        main.c \
	config.c \
	HY1C_out.c \
        read_l2.c \
	aer_io.c \
	aerosol.c \
	airmass.c \
	alloc_aer.c \
	alloc_l1.c \
	alloc_l2.c \
	alloc_target.c \
	alloc_vcal.c \
	amoeba.c \
	aph.c \
	atmocor1.c \
	atmocor1_land.c \
	atmocor2.c \
	b128_box_num.c \
	b128_msk_get.c \
	b128_wd_bit.c \
	bin_climatology.c \
	brdf.c \
	brightness.c \
	calcite.c \
	carder.c \
	cdom_morel.c \
	cloud_flag.c \
	convert_band.c \
	convl12.c \
	convl21.c \
	covariance_inversion.c \
	cpl1rec.c \
	filehandle_init.c \
	filter.c \
	flags_iop.c \
	fluorescence.c \
	fresnel.c \
	fuzzy_func_v3.c \
	gammln.c \
	gas_trans.c \
	gcf.c \
	get_chl.c \
	get_depth.c \
	get_es.c \
	get_f0.c \
	getformat.c \
	get_ice_frac.c \
	get_Kd.c \
	getl1rec.c \
	get_l2prod_index.c \
	get_ndvi.c \
	get_niwa_iop.c \
	get_owmc.c \
	get_par.c \
	get_pml.c \
	get_poc.c \
	get_qaa.c \
	get_rhos.c \
	get_rhown_nir.c \
	get_smoke.c \
	get_toa_refl.c \
	get_tricho.c \
	get_tsm.c \
	giop.c \
	glint.c \
	gser.c \
	gsm.c \
	h5io.c \
	ice_mask.c \
	init_l1.c \
	init_l2.c \
	ipar_arp.c \
	ipar.c \
	l12_seawifs.c \
	l1a_osmi.c \
	l1a_seawifs.c \
	l1_czcs_hdf.c \
	l1_hdf_generic_read.c \
	l1_hdf_generic_write.c \
	l1_hmodis_hdf.c \
	l1_io.c \
	l1_meris_CC.c \
	l1_meris_N1.c \
	l1_modis_hdf.c \
	l1_mos_hdf.c \
	l1_ocm2_hdf.c \
	l1_ocmdb_hdf.c \
	l1_ocm_hdf.c \
	l1_octs_hdf.c \
	l1_pci_hdf.c \
	l1subpix.c \
	l1_viirs_h5.c \
	l1_xcal_hdf.c \
	l2_generic.c \
	las_iop.c \
	ll2vec.c \
	loadl1.c \
	lonlat2pixline.c \
	lubksb.c \
	ludcmp.c \
	msl12_input.c \
	mumm.c \
	myprod.c \
	niwa_iop.c \
	nlw_outband.c \
	nrutil.c \
	owt.c \
	photic_depth.c \
	pml.c \
	pml_iop_calculate.c \
	pml_iop_config.c \
	pml_iop_tables.c \
	polcor.c \
	prodgen.c \
	prodlist.c \
	qaa.c \
	rayleigh.c \
	rdsensorinfo.c \
	scene_meta.c \
	seawater.c \
	seawater_get.c \
	setanc.c \
	setflags.c \
	smi_climatology.c \
	soa_sma.c \
	sprsax.c \
	sprsin.c \
	sssref.c \
	sst.c \
	sstref.c \
	target_io.c \
	turbid.c \
	vcal.c \
	viirs_pxcvt.c \
	viirs_utls.c \
	virtual_constellation.c \
	water.c \
	water_vapor.c \
	whitecaps.c \
	windex.c \
	xcal.c \

HEADERS += \
	aer_struc.h \
	amoeba.h \
	chl.h \
	filehandle.h \
	filehdr_struc.h \
	filter.h \
	flags_iop.h \
	gc.h \
	giop.h \
	h5io.h \
	input_struc.h \
	KDvector.h \
	l12_parms.h \
	l12_proto.h \
	l1a_seawifs.h \
	l1_czcs_hdf.h \
	l1_hdf_generic_read.h \
	l1_hmodis_hdf.h \
	l1_meris_CC.h \
	l1_meris_N1.h \
	l1_modis_hdf.h \
	l1_mos_hdf.h \
	l1_ocm2_hdf.h \
	l1_ocmdb_hdf.h \
	l1_ocm_hdf.h \
	l1_octs_hdf.h \
	l1_osmi_hdf.h \
	l1_pci_hdf.h \
	l1q_struc.h \
	l1_struc.h \
	l1_viirs_h5.h \
	l1_xcal_hdf.h \
	l2_flags.h \
	l2_generic.h \
	l2_hdf_generic.h \
	l2prod.h \
	l2prod_struc.h \
	l2_struc.h \
	lonlat2pixline.h \
	mipoly.h \
	miscanfill.h \
	misc.h \
	miscstruct.h \
	mscal_struc.h \
	msl2val_struc.h \
	niwa_iop.h \
	nr.h \
	nrutil.h \
	pml_bright.h \
	pml.h \
	pml_iop_calculate.h \
	pml_iop_config.h \
	pml_iop.h \
	pml_iop_tables.h \
	qaa.h \
	rawcal.h \
	runcal.h \
	scene_meta.h \
	smi_climatology.h \
	target_struc.h \
	vcal_struc.h \
	xcal.h \
	Xfuncs.h \
	Xosdefs.h


DEPENDPATH += $$PWD/../seadas64/build/inc/utils

INCLUDEPATH += $$PWD/../seadas64/build/inc/utils
INCLUDEPATH += $$PWD/../seadas64/build/inc/swfinc
INCLUDEPATH += $$PWD/../seadas64/build/inc/meris
INCLUDEPATH += $$PWD/../seadas64/build/inc/msinc
INCLUDEPATH += $$PWD/../seadas64/build/inc/cdfinc
INCLUDEPATH += $$PWD/../seadas64/build/inc/octsinc
INCLUDEPATH += $$PWD/../seadas64/build/inc/osmiinc
INCLUDEPATH += $$PWD/../seadas64/build/lib3/include
INCLUDEPATH += $$PWD/../seadas64/build/src/lib24to8


LIBS += -L$$PWD/../seadas64/build/lib3/lib/ -lhdfutils
LIBS += -L$$PWD/../seadas64/build/lib3/lib/ -lnetcdf
LIBS += -L$$PWD/../seadas64/build/lib3/lib/ -lhdf5_hl
LIBS += -L$$PWD/../seadas64/build/lib3/lib/ -lhdf5
LIBS += -L$$PWD/../seadas64/build/lib3/lib/ -ll2
LIBS += -L$$PWD/../seadas64/build/lib3/lib/ -lanc
LIBS += -L$$PWD/../shared_lib_20180823/ -lczcs
LIBS += -L$$PWD/../shared_lib_20180823/ -losmi
LIBS += -L$$PWD/../shared_lib_20180823/ -lmeris
LIBS += -L$$PWD/../shared_lib_20180823/ -lseawifs
LIBS += -L$$PWD/../shared_lib_20180823/ -lnav
LIBS += -L$$PWD/../seadas64/build/lib3/lib/ -lgenutils
LIBS += -L$$PWD/../seadas64/build/lib3/lib/ -lmfhdf
LIBS += -L$$PWD/../seadas64/build/lib3/lib/ -ldf
LIBS += -L$$PWD/../seadas64/build/lib3/lib/ -ljpeg
LIBS += -lz
LIBS += -lm
LIBS += -ldl
LIBS += -lgfortran
LIBS += -L$$PWD/../seadas64/build/lib3/lib/ -lquadmath
LIBS += -L$$PWD/../seadas64/build/lib3/lib/ -lgsl
LIBS += -L$$PWD/../seadas64/build/lib3/lib/ -lgslcblas
LIBS += -L$$PWD/../seadas64/build/lib3/lib/ -lfann
LIBS += -L$$PWD/../seadas64/build/lib3/lib/ -lxdr
